home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HamCall (October 1991)
/
HamCall (Whitehall Publishing)(1991).bin
/
bcast
/
bcstcble
/
gensize.bas
< prev
next >
Wrap
BASIC Source File
|
1990-10-14
|
6KB
|
129 lines
10 PRINT"AC GENERATOR SIZE PROGRAM"
20 PRINT" FOR RADIO/TV STATIONS
30 PRINT"230 VOLTS ASSUMED....YOU
40 PRINT"SHOULD ADJUST WHERE NECE-"
50 PRINT"SSARY FOR 115 VOLT CIRCUITS."
60 ALL1=0:ALL3=0:MOTOR1=0:MOTOR3=0:RESULT=0:START=0:L=0
70 PRINT
80 PRINT
90 INPUT" 1 OR 3 PHASE AC LOAD";PHASE:IF PHASE =0 THEN GOTO 90
100 IF PHASE =2 THEN GOTO 90
110 IF PHASE >= 4 THEN GOTO 90
120 INPUT"TOTAL LOAD (V TIMES A) LESS MOTORS";L
130 INPUT"TOTAL MOTOR HORSEPOWER (SINGLE PHASE)";MOTOR1
140 IF PHASE=1 THEN GOTO 170
150 INPUT"TOTAL MOTOR HORSEPOWER (3 PHASE)";MOTOR3
160 IF MOTOR1 = 0 THEN RESULT1=0:GOTO 340
170 IF MOTOR1 <= .16 THEN RESULT1=2.2: GOTO 340
180 IF MOTOR1 <= .25 THEN RESULT1=2.9: GOTO 340
190 IF MOTOR1 <= .33 THEN RESULT1=3.6: GOTO 340
200 IF MOTOR1 <= .5 THEN RESULT1=4.9: GOTO 340
210 IF MOTOR1 <= .75 THEN RESULT1=6.9: GOTO 340
220 IF MOTOR1 <= 1.0 THEN RESULT1=8.0: GOTO 340
230 IF MOTOR1 <= 1.5 THEN RESULT1=10: GOTO 340
240 IF MOTOR1 <= 2.0 THEN RESULT1=12: GOTO 340
250 IF MOTOR1 <= 3.0 THEN RESULT1=17: GOTO 340
260 IF MOTOR1 <= 5.0 THEN RESULT1=28: GOTO 340
270 IF MOTOR1 <= 7.5 THEN RESULT1=40: GOTO 340
280 IF MOTOR1 <= 10 THEN RESULT1=50: GOTO 340
290 IF MOTOR1 > 10 THEN GOTO 1000
300 REM
310 REM
320 REM
330 IF MOTOR3 = 0 THEN RESULT3=0:GOTO 550
340 IF MOTOR3<= .5 THEN RESULT3=2.0: GOTO 550
350 IF MOTOR3<= .75 THEN RESULT3=2.8: GOTO 550
360 IF MOTOR3<= 1.0 THEN RESULT3=3.6: GOTO 550
370 IF MOTOR3<= 1.5 THEN RESULT3=5.2: GOTO 550
380 IF MOTOR3<= 2.0 THEN RESULT3=6.8: GOTO 550
390 IF MOTOR3<= 3.0 THEN RESULT3=9.6: GOTO 550
400 IF MOTOR3<= 5.0 THEN RESULT3=15.2: GOTO 550
410 IF MOTOR3<= 7.5 THEN RESULT3=22: GOTO 550
420 IF MOTOR3<= 10 THEN RESULT3=28: GOTO 550
430 IF MOTOR3<= 15 THEN RESULT3=42: GOTO 550
440 IF MOTOR3<= 20 THEN RESULT3=54: GOTO 550
450 IF MOTOR3<= 25 THEN RESULT3=68: GOTO 550
460 IF MOTOR3<= 30 THEN RESULT3=80:GOTO 550
470 IF MOTOR3<= 40 THEN RESULT3=104: GOTO 550
480 IF MOTOR3<= 50 THEN RESULT3=130: GOTO 550
490 IF MOTOR3<= 60 THEN RESULT3=154: GOTO 550
500 IF MOTOR3<= 75 THEN RESULT3=192: GOTO 550
510 IF MOTOR3<= 100 THEN RESULT3=248:GOTO 550
520 IF MOTOR3 >100 THEN GOTO 1000
550 RESULT1=RESULT1*230
555 RESULT3=RESULT3*230
559 IF PHASE = 3 GOTO 600
560 REM SINGLE PHASE GEN SETS
570 ALL1=(L/1000)+(RESULT1/1000)
580 PRINT"TOTAL LOAD IS ";ALL1;" KW"
590 GOTO 620
600 ALL3=(L*SQR(3)/1000)+(RESULT3/1000)+(RESULT1/1000)
610 PRINT"TOTAL 3-PHASE LOAD IS ";ALL3;" KW"
620 PRINT
630 IF MOTOR1=0 THEN START=0:GOTO 730
640 IF MOTOR3=0 THEN START=START+0
650 IF MOTOR1 =1 THEN START=5.9
660 IF MOTOR1 >1 AND MOTOR1 <3 THEN START=11.9:GOTO 730
670 IF MOTOR1 >2 AND MOTOR1 <5 THEN START=17.9:GOTO 730
680 IF MOTOR1 >5 AND MOTOR1 <7.5 THEN START=29.8:GOTO 730
690 IF MOTOR1 >7.5 AND MOTOR1 <10 THEN START=44.6:GOTO 730
700 IF MOTOR1 =10 THEN START=59.5
710 IF MOTOR1 > 10 THEN GOTO 980
720 REM
730 IF MOTOR3 =1 THEN START=START+5.9:GOTO 910
740 IF MOTOR3 >1 AND MOTOR3 <3 THEN START=START+11.9:GOTO 910
750 IF MOTOR3 >3 AND MOTOR3 <5 THEN START=START+17.9:GOTO 910
760 IF MOTOR3 >5 AND MOTOR3 <7.5 THEN START=START+29.8:GOTO 910
770 IF MOTOR3 >7.5 AND MOTOR3 <10 THEN START=START+44.6:GOTO 910
780 IF MOTOR3 >10 AND MOTOR3 <15 THEN START=START+59.5:GOTO 910
790 IF MOTOR3 >15 AND MOTOR3 <20 THEN START=START+89.2:GOTO 910
800 IF MOTOR3 >20 AND MOTOR3 <25 THEN START=START+119:GOTO 910
810 IF MOTOR3 >25 AND MOTOR3 <30 THEN START=START+149:GOTO 910
820 IF MOTOR3 >30 AND MOTOR3 <40 THEN START=START+179:GOTO 910
830 IF MOTOR3 >40 AND MOTOR3 <50 THEN START=START+238:GOTO 910
840 IF MOTOR3 >50 AND MOTOR3 <60 THEN START=START+298:GOTO 910
850 IF MOTOR3 >60 AND MOTOR3 <75 THEN START=START+357:GOTO 910
860 IF MOTOR3 >75 AND MOTOR3 <100 THEN START=START+446:GOTO 910
870 IF MOTOR3 =100 THEN START=START+595
880 IF MOTOR3 > 100 THEN GOTO 1000
890 GOTO 910
900 REM
910 RUSH=((START*230)+L)/1000
920 IF ALL1=0 GOTO 940
930 IF RUSH > 1.25*ALL1 GOTO 970
940 IF ALL3=0 GOTO 960
950 IF RUSH > 1.25*ALL3 GOTO 970
960 GOTO 980
970 PRINT"STEP-STARTING YOUR LOAD REQUIRED"
980 INPUT "ANOTHER SET";A$:A$=LEFT$(A$,1):IF A$="N" THEN END
990 GOTO 10
1000 PRINT"FATAL ERROR - HAND FIGURE OR CHECK INPUT DATA."
1010 REM MOTOR STARTING BASED ON ELECTRICAL CODE G,
1020 REM IF OTHER VALUES REQUIRED BY LOCAL CODE, CHANGE
1030 REM LINES 700 TO 850
1040 REM
1050 REM SINGLE PHASE LOAD IS KW= VOLTS * AMPS / 1000
1060 REM 3-PHASE LOAD IS KW= VOLTS * AMPS * SQUR(3)/1000
1070 REM DO NOT ADD AMPS FOR ALL 3 PHASE, PICK ONE
1080 REM POWER FACTOR= WATTS/ VOLTS * AMPS
1090 REM 3-PHASE KW= V * A * PF * SQR(3) /1000
1100 REM 3-PHASE VA= V * A * SQR(3)
1110 REM 3-PHASE AMPS= 746 * HORSEPOWER / SQR(3)*EFFCY*PF
1120 REM SINGLE PHASE KW= V*A*PF/1000
1130 REM SINGEL PHASE AMPS= 746*HORSEPOWER/V*EFFCY*PF
1140 REM HORSEPOWER= KW/.746 * EFFECY
1150 REM KW=MOTOR HORSEPOWER * .746/MOTOR EFFCY
1160 REM GEN HORSEPOWER=GENERATOR KW * 1.5
1170 REM BASED ON 90% RULE OF THUMB
1180 REM USE LINES 1320 & 1300 AS INPUT STATEMENTS AND
1190 REM DELETE THE LINES 140-260 & 300-480 IF YOU KNOW
1200 REM YOUR MOTOR POWER FACTOR AND EFFIENCY
1210 REM CAN BE REDUCED CONSIDERABLY.
1220 REM 3 PHASE POWER FACTOR IS NOT CONSIDERED
1230 REM IF UNDER 85 OR SO, DO FIGURES BY HAND
1240 REM BY BOB GROOME
1250 REM ALLIED
1260 REM PO BOX 1487
1270 REM RICHMOND, IN 47375
1280 REM 317/962-8596
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$